<template>
    <div class="resetSuccess">
        <assets-head :title="title" :backFunc="() => $router.push('/login')" />
        <div class="content">
            <div class="imgBox"><img src="@/assets/image/success.png" alt=""></div>
            <div class="text-dark-black mt-32 font-700 font-48 textColor">{{ $t('密码修改成功') }}</div>
            <div class="text-grey mt-40">{{ $t('请使用新密码登录') }}!</div>
            <div class="btn mt-142" @click="loginOut">{{ $t('登录') }}</div>
        </div>
    </div>
</template>

<script>
import assetsHead from "@/components/assets-head";
export default {
    props: {

    },
    components: {
        assetsHead
    },
    data() {
        return {
            title: '',
            goHome:true
        }
    },
    mounted() {
    },
    methods: {
        loginOut(){
            this.$store.commit('user/SET_OUT');
            this.$router.push('/login')
        }
    }
}
</script>

<style lang="scss" scoped>
.resetSuccess{
    width: 100%;
    box-sizing: border-box;
}
.content {
    font-size: 24px;
    padding: 32px;
    text-align: center;
}

.imgBox {
    width: 122px;
    height: 122px;
    margin: auto;

    img {
        width: 100%;
        height: 100%;
    }
}

.btn {
    background: $btn_main;
    color: #000;
    height: 88px;
    line-height: 88px;
    text-align: center;
    font-size: 32px;
    border-radius: 10px;
}
</style>